const mongoose = require('../../data/db')

const schema = mongoose.Schema({
  // 导航名称
  title: {
    type: String,
    default: ''
  },
  // 导航标识
  navType: {
    type: String || Number,
    default: ''
  },
  // 导航路径
  path: {
    type: String || Number,
    default: 1
  },
  // 顺序
  order: {
    type: Number,
    default: 1
  },
  // 状态
  status: {
    type: Number || String,
    default: 1
  },
},{
  timestamps: {
    createdAt: 'createTime',
    updatedAt: 'updateTime'
  }
})

module.exports = mongoose.model('NavInfo', schema)